projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69cef3c
)
examples: Don't use gtk_application_add_accelerator
author
Matthias Clasen
<mclasen@redhat.com>
Thu, 22 May 2014 12:51:37 +0000
(08:51 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 22 May 2014 12:51:58 +0000
(08:51 -0400)
It has been deprecated.
examples/plugman.c
patch
|
blob
|
history
diff --git
a/examples/plugman.c
b/examples/plugman.c
index c074aa93933321998a844b725f6e94685a47989e..3a4b7b3d0ce9434eb88ed7b0652fb8d3bf37ed40 100644
(file)
--- a/
examples/plugman.c
+++ b/
examples/plugman.c
@@
-476,10
+476,11
@@
main (int argc, char **argv)
{
PlugMan *plug_man;
int status;
+ const gchar *accels[] = { "F11", NULL };
plug_man = plug_man_new ();
- gtk_application_
add_accelerator
(GTK_APPLICATION (plug_man),
-
"F11", "win.fullscreen", NULL
);
+ gtk_application_
set_accels_for_action
(GTK_APPLICATION (plug_man),
+
"win.fullscreen", accels
);
status = g_application_run (G_APPLICATION (plug_man), argc, argv);
g_object_unref (plug_man);